package com.guigu.buy.service.impl;

import com.guigu.buy.mapper.SysRoleMapper;
import com.guigu.buy.pojo.SysMenu;
import com.guigu.buy.mapper.SysMenuMapper;
import com.guigu.buy.service.ISysMenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.awt.*;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author com.guigu
 * @since 2024-05-15
 */
@Service
public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> implements ISysMenuService {
 @Autowired
    private SysRoleMapper sysRoleMapper;
    @Override
    public List<SysMenu> getByRoleId(int roleId) {
        return  sysRoleMapper.getroleId(roleId) ;
    }

    @Override
    public void delMenu(Integer roleid) {
        sysRoleMapper.deletemenuById(roleid);
    }
}
